{{include template('public/header','admin')}}
<body>
    <div id="page-wrapper">
        <div class="row">
            <div class="col-lg-12">
                <fieldset>
                    <legend>新建发布方案</legend>
                    <form action="{{url('create_programme')}}" method="post" onsubmit="return check_all()">
                        <input type="hidden" value="{{$ids}}" name="ids">
                        <table class="table table-border yzmcms_table">
                            <tr>
                                <td width="165"><span class="c-red">*</span>选择栏目</td>
                                <td>
                                    <span class="select-box inline">
                                        {{select_category('catid', 0, '≡ 请选择栏目 ≡')}}
                                    </span>
                                </td>
                            </tr>
                            <tr>
                                <td><span class="c-red">*</span>作者昵称</td>
                                <td><input class="form-control" type="text" value="管理员" name="nickname"></td>
                            </tr>
                            <tr>
                                <td>点击量</td>
                                <td><input class="form-control" type="text" value="0" name="click"></td>
                            </tr>
                            <tr>
                                <td>来源</td>
                                <td><input class="form-control" type="text" value="原创" name="copyfrom"></td>
                            </tr>
                            <tr>
                                <td>自动提取摘要</td>
                                <td>
                                    <label><input type="radio" name="auto_description" value="1" checked> 是</label>
                                    &nbsp;&nbsp;<label><input type="radio" name="auto_description" value="0"> 否</label>
                                </td>
                            </tr>
                            <tr>
                                <td>缩略图</td>
                                <td>
                                    <label><input type="radio" name="auto_thumb" value="1" checked> 是</label>
                                    &nbsp;&nbsp;<label><input type="radio" name="auto_thumb" value="0"> 否</label> &nbsp;&nbsp; [获取内容第一张图片为缩略图]
                                </td>
                            </tr>
                            <tr>
                                <td>&nbsp;&nbsp;</td>
                                <td>
                                    <input class="dosubmit btn btn-primary" name="dosubmit" type="submit" value="提交">
                                </td>
                            </tr>
                        </table>
                    </form>
                </fieldset>
            </div>
        </div>
    </div>
    <script type="text/javascript">
        function check_all() {
            if ($("#select").val() == 0) {
                layer.alert("请选择文章栏目!");
                return false;
            }
            if ($("input[name='nickname']").val() == '') {
                layer.alert("作者昵称不能为空!");
                return false;
            }
        }
    </script>
</body>
</html>